package com.cjkj.equipment.service.impl;

import com.cjkj.equipment.domain.EquipmentUsageRecords;
import com.cjkj.equipment.mapper.EquipmentUsageRecordsMapper;
import com.cjkj.equipment.service.IEquipmentUsageRecordsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 设备使用记录Service业务层处理
 * 
 * @author cjkj
 * @date 2024-08-15
 */
@Service
public class EquipmentUsageRecordsServiceImpl implements IEquipmentUsageRecordsService
{
    @Resource
    private EquipmentUsageRecordsMapper equipmentUsageRecordsMapper;

    @Override
    public EquipmentUsageRecords getInUseByEquipmentNo(String equipmentNo) {
        return equipmentUsageRecordsMapper.selectEquipmentInUse(equipmentNo);
    }

    @Override
    public EquipmentUsageRecords getInUseByPhone(String phone, String equipmentType) {
        return equipmentUsageRecordsMapper.selectInUseByPhone(phone, equipmentType);
    }

    @Override
    public EquipmentUsageRecords getInUse(String equipmentNo, String equipmentType, String phone) {
        return equipmentUsageRecordsMapper.getEquipmentInUse(equipmentNo, equipmentType, phone);
    }

}
